<template>
  <div class="StepperPhoto">
    <el-button @click="getSong()">
      获取歌曲
    </el-button>
    <div>歌曲名称:{{obj.songName}}</div>
    <div>歌曲链接:<a :href="obj.name">{{obj.name}}</a></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isDisabled: false,
      obj: {
        songName: "",
        name: "",
      },
    }
  },
  methods:{
    getSong () {
      this.$axios.get("/img/add").then((res) => {
        if (res.data.code == 200) {
          this.obj = {
            songName: res.data.data.type,
            name: res.data.data.url,
          }
        }
      })
    },
  },
}
</script>

<style scoped>
.StepperPhoto {
  width: 100%;
}
</style>
